package AbstractBlogDemo;

public abstract class Animal {
    String type;
    String age;
    public abstract void eat();
    public void sleep() {
        System.out.println("睡觉");
    }
}
abstract class Dog extends Animal{
    public abstract void run();
}
class Keji extends Dog{
    @Override
    public void eat() {

    }

    @Override
    public void run() {

    }
}

